﻿using AutoMapper;
using System;
using System.Collections.Generic;
using System.Text;
using Yuebon.Security.Dtos;
using Yuebon.Security.Models;

namespace Yuebon.Security.Application
{
    /// <summary>
    /// Model与Dto映射
    /// </summary>
    public class SecurityMapper
    {
        public static void Initialize()
        {
            Mapper.Initialize(cfg =>
            {
                //cfg.CreateMap<APP, APPDto>();
                cfg.CreateMap<Function, FunctionDto>();
                cfg.CreateMap<ItemsDetail, ItemsDetailDto>();
                cfg.CreateMap<Role, RoleDto>();
                cfg.CreateMap<RoleData, RoleDataDto>();
                cfg.CreateMap<User, UserDto>();
                cfg.CreateMap<WorkOrder, WorkOrderDto>();
                cfg.CreateMap<SystemType, SystemTypeDto>();
                cfg.CreateMap<Menu, MenuDto>();
            });
        }
    }
}
